package com.demo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 存储聊天记录的数据实体mongoDB
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("chat_meg")
public class ChatMeg {
    @TableId
    private ObjectId id;
    private int userId;
    private String content;
}
